import { AxiosPromise } from 'axios'
import request from '/@/utils/request'

const prefix = '/api_dms/invoice/'
  
// 开票订单列表
export const getInvoiceList: (data:object) => AxiosPromise = (data) =>
  request(`${prefix}list`, { data })
// 获取开票详情
export const getInvoiceInfo: (data:object) => AxiosPromise = (data) =>
  request(`${prefix}info`, { data })
// 开票申请
export const invoiceApply: (data:object) => AxiosPromise = (data) =>
  request(`${prefix}apply`, { data })
